<?php !defined('DYHB_PATH') && exit; /* DoYouHaoBaby Framework 模板缓存文件 生成时间：2011-06-09 11:01:16  */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">
<head>
<title><?php print G::L( "DoYouHaoBaby-X Ucenter 管理平台", null, null ) ; ?> | <?php print G::L( "登录", null, null ) ; ?></title>
<link rel="stylesheet" type="text/css" href="../Public/Css/style.css" />
<script type="text/javascript" src="<?php echo __LIBCOM__;?>/Js/Vendor/Jquery.js"></script>
<script type="text/javascript" src="<?php echo __LIBCOM__;?>/Js/Dyhb.package.js"></script>
<script type="text/javascript" src="<?php echo __LIBCOM__;?>/Js/Extend/Extend.package.js"></script>
<script type="text/javascript" src="../Public/Js/common.js"></script>

</head>

<body onLoad="document.login.user_name.focus()">

<script type="text/javascript">
<!--
var PUBLIC	 =	 '__PUBLIC__';
var URL = '__URL__';
Dyhb.Ajax.Dyhb.Image = ['__TMPLPUB__/Images/ajax/loading.gif', '__TMPLPUB__/Images/ajax/ok.gif','__TMPLPUB__/Images/ajax/update.gif' ]
Dyhb.Ajax.Dyhb.UpdateTips	=	D.L( '登录中...');

function login_handle( data,status ){

   if (status==1){

       window.location = '<?php echo( G::U('index/index') );?>';
   }
}

function keydown(e){

	var e = e || event;
	if (e.keyCode==13){

	    Dyhb.AjaxSubmit('form1','<?php echo( G::U('public/check_login') );?>','result',login_handle);
	}
}


//-->
</script>

<div id="login">
   <form method='post' name="login" id="form1">
      <p><img src="<?php echo __TMPLPUB__;?>/Images/logo.gif" title="DoYouHaoBaby - Import - title"/>
	  </p>
	  <p><div id="result" class="none"></div></p>
	  <p>
		  <label><?php print G::L( "用户名/E-mail", null, null ) ; ?><br />
		  <input type="text" name="user_name" id="user_name" class="field" size="51"/></label>
	  </p>
	  <p>
		  <label><?php print G::L( "密码", null, null ) ; ?><br />
		  <input type="password" name="user_password" id="user_password" class="field" size="51" /></label>
	  </p>
	  <?php if($bLoginSeccode) :?>
	  <p>
		  <label><?php print G::L( "验证码", null, null ) ; ?><br />
		  <input onfocus="updateSeccode();this.onfocus = null;" type="text" onKeyDown="keydown(event)"  onBlur="checkSeccode( 'result' );" class="field" name="seccode" size="10" id="seccode"/>
		  <span id="seccodeMessage">&nbsp;</span><br/>
		  <div id="seccodeImage"></div>
		  </label>
	  </p>
	  <?php endif; ?>
	  <p>
	      <input type="hidden" name="ajax" value="1">
		  <input type="button" class="button right" value="<?php print G::L( "登 录", null, null ) ; ?>" onClick="Dyhb.AjaxSubmit('form1','<?php echo( G::U('public/check_login') );?>','result',login_handle);" />
	  </p>
   </form>
</div>
</body>
</html>